<?php
/**
* @author: Nguyen Thanh Tung
* @date: 02/02/2014
*/
if(!isset($AppUI->id)||!isset($_SESSION['user'])||(isset($_SESSION['user'])&&($_SESSION['user']&1<<2)==0)){
    redirect(HOST_BACKEND);
}
$this->load->model('user_model','user');
$intUserId = $this->input->get('userid',0);
$row = $this->user->get($intUserId);
$this->smarty->assign('birthday',CI_Function::datevn($row['birthdate']));
$this->smarty->assign('row',$row);
$this->smarty->display('user/edit.tpl');